package com.ericsson.enap.modules.topology.job;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.topology.task.CabTopologySyncTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 同步更新拓扑数据
 */
@Component
public class CabTopologySyncJob implements MainJob {

    @Autowired
    QuartzTableManager quartzTableManager;
    @Autowired
    CabTopologySyncTask topologySyncTask;
    //String jobName="topologySyncJob";
    @Override
    public void doTask() {
        topologySyncTask.execute();
        //quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0/15 * * * ?",topologySyncTask);
    }
}
